package com.blindnews.service;

import com.blindnews.pojo.Channel;
import com.blindnews.pojo.News;
import org.springframework.http.ResponseEntity;

import java.io.IOException;
import java.util.List;

public interface NewsService {

    public Boolean downloadnews(ResponseEntity<String> response) throws IOException;

    public Boolean downloadchannel(ResponseEntity<String> response);

    public List<News> getNewsList(String channelId);
    public List<Channel> getChannel();
    public News upLoadNews(String id);
//    public void getNewsInfo(String url);
//    public void addChannel(List<Channel> channelList);
//    void addNewsList(List<News> newsList);
}
